< previous page page_583 next page >

Page 583
Testing the ActiveX Document
After adding the code and saving your document, you are ready to test the code. Testing an ActiveX document is a little different than testing a standard program because the document must run inside another application. To test your code, follow these steps:
1. Run your document by clicking the Start button on the toolbar. Visual Basic will not display the user interface of the application, so don't worry.
2. Start Internet Explorer and choose File, Open from Internet Explorer's menu. This will display an Open dialog box where you can enter the name of the ActiveX document to open.
3. Specify the path of your ActiveX document and the name. The name will be the value of the Name property of the UserDocument object, followed by a .VBD extension.
Note
When running your document within Visual Basic, the file is located in the same folder as Visual Basic (that is, C:\PROGRAM FILES\).

4. Click OK in the Open dialog box to load your document. The new database viewer document will be executed in Internet Explorer, as shown in Figure 21.4.
12181-0583a.gif
Figure 21.4.
Executing the Database Viewer ActiveX document.

 
< previous page page_583 next page >

If you like this book, buy it!